package com.finance.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 贷款产品期数规则
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "loan_product_periods")
public class LoanProductPeriods implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 支持期数 1:3期 2:6期 3:12期
     */
    private Integer type;

    /**
     * 利率
     */
    private Integer interestRates;

    /**
     * 利率单位  1:日 2:月 3:年
     */
    private Integer interestRateUnits;

    /**
     * 贷款产品标识
     */
    private String loanProductCode;






    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_TYPE = "type";

    public static final String COL_INTEREST_RATES = "interest_rates";

    public static final String COL_INTEREST_RATE_UNITS = "interest_rate_units";

    public static final String COL_LOAN_PRODUCT_CODE = "loan_product_code";

}